package org.asiainfo.file.domain.bo;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import org.asiainfo.common.core.validate.AddGroup;
import org.asiainfo.common.core.validate.EditGroup;
import org.asiainfo.file.domain.Attactment;
import lombok.Data;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.EqualsAndHashCode;
import org.asiainfo.common.mybatis.stream.core.domain.BaseEntity;

/**
 * 业务对象 attactment
 *
 * @author dotor-ww
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = Attactment.class, reverseConvertGenerate = false)
public class AttactmentBo extends BaseEntity {

    /**
     * 主键ID
     */
    private Long attactId;
    /**
     * 业务名称
     */
    @NotBlank(message = "业务名称", groups = {AddGroup.class, EditGroup.class})
    private String applyName;
    /**
     * 业务ID
     */
    @NotNull(message = "业务编码", groups = {AddGroup.class, EditGroup.class})
    private String applyCode;
    /**
     * 备注信息
     */
    private String remark;
    /**
     * 删除标志（0代表存在 2代表删除）
     */
    private String delFlag;
}

